package com.RequestChengAnJu;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.yishun.springboot.mapper.ElectricityMonitoringDetailedMapper;
import com.yishun.springboot.mapper.TspDetailedMapper;
import com.yishun.springboot.mapper.TspGetDataMapper;
import com.yishun.springboot.pojo.TspHaveDevCode;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.File;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 深圳城安院对接--项目信息查询
 * 
 * 
 * @author YS
 * @date 2020/12/22 15:29
 */
public class CAYPrFace {

	@Autowired
	TspDetailedMapper tspDetailedMapper;
	
	private String token = "EBDECFCC5DE096892050A8E6913168A7A0A41963";
	private String baseUlr = "http://139.159.251.33/misInter";// 深圳城安院请求地址
	
	/**
	 * 分页模糊查询监督项目信息
	 * @return 
	 */
	public String getProjInfos(String a) {
		String url = baseUlr + "/authorize/getProjInfos";
		url+="?token="+token;
		
		String info = HttpUtil.post(url, a);
		return info;
		
	}
	
	/**
	 * 按项目查询监督工程信息  pguid字段必须
	 * @param d
	 * @return
	 */
	public String getGcbyProj(String a) {
		String url = baseUlr + "/authorize/getGcbyProj";
		url+="?token="+token;
		
		String info = HttpUtil.post(url, a);
		return info;
	}
	
	
	
	

}
